<div style="margin-left:15px">
<div id="insertWrapper">
<table cellSpacing="0" id="searchTbl" cellPadding="0" width="98%" align="center">
  <tr>
    <td></td>
  </tr>
  <tr>
    <td>{include file="ext/tpl.title.html"}
      <table class="lcb" cellSpacing="0" cellPadding="5" width="100%" border="0">
        <tr>
          <td colspan="2"><form action="" method="post" enctype="multipart/form-data" name="form1" onsubmit="return sm(this);">
              <table border="0" cellSpacing="0" cellPadding="0" width="100%">
                {section name=rows loop=$config} {if $config[rows].insert}
                <tr>
                  <td class='leftheader'>{$config[rows].comment}</td>
                  <td>{include file=$config[rows].file}</td>
                </tr>
                {/if} {/section}
                <tr>
                  <td class='leftheader'>&#25805;&#20316;</td>
                  <td align="center"><input type="submit" value="&#25554;&#20837;" id="submit">
                    <input type="reset" value="&#37325;&#32622;" id="reset">
                    <input type="hidden" name="_action" value="insert"></td>
                </tr>
              </table>
            </form></td>
        </tr>
      </table></td>
  </tr>
</table>
</div>
</div>
<script>
{ldelim}literal{rdelim}
if (widgets && widgets.resizeEle){ldelim}
 widgets.resizeEle('insertWrapper',{ldelim}width:500,maxWidth:Ext.getBody().dom.clientWidth*.95,height:5+Ext.getDom('insertWrapper').offsetHeight{rdelim});
{rdelim}
function sm(f){ldelim}
  var ret = false;
  for (var i=0,len=f.elements.length;i<len;i++){ldelim}
     var ele = f.elements[i];
	 if (ele.name.length > 0 && 0 < ele.value.replace(/^\s+|\s+$/g,'').length){ldelim}
	   return true;
	 {rdelim}
  {rdelim}
  return false;
{rdelim}
{ldelim}/literal{rdelim}
</script>
